package cn.shoukaiseki.sjf4j.jackson;

import cn.shoukaiseki.sjf4j.node.JsonNodeType;
import cn.shoukaiseki.sjf4j.node.TreeNode;
import com.fasterxml.jackson.databind.node.ArrayNode;


public class JacksonArrayNode extends JacksonTreeNode<ArrayNode> {


    public JacksonArrayNode(ArrayNode node){
        super(node);
    }

    @Override
    public JsonNodeType getNodeType() {
        return JsonNodeType.ARRAY;
    }

    @Override
    public TreeNode get(String fieldName) {
        return null;
    }

    @Override
    public TreeNode get(int index) {
        return convert(value.get(index));
    }

    @Override
    public int size() {
        return value.size();
    }
}
